#!/bin/bash
# Usage example:
# docker run -it -v /Users/weliu/code/share/:/share/ gofera/cxx-cmake-example:v1 /bin/bash
# if fail, can try: docker run --privileged -it -v /Users/weliu/code/share/:/share/ gofera/cxx-cmake-example:v1 /bin/bash
# /share/setup_nvim.sh
# if need go or git that can visit github, setup:  /share/go_setup.sh
# source ~/.bashrc
mkdir -p ~/tools
cd ~/tools/
tar -zxf /share/nvim-linux64-0.95.tgz
tar -zxf /share/node-v16.15.1-linux-x64.tgz
echo 'export PATH=~/tools/node-v16.15.1-linux-x64/bin:~/tools/nvim-linux64/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
mkdir -p ~/.config
cd ~/.config
tar -zxf /share/nvim.tgz
cp /share/coc-settings.json nvim/
# cp /share/nvim/general/settings.vim nvim/general/
tar -zxf /share/coc.tgz
cp /share/fzf /usr/local/bin/
cp /share/rg /usr/local/bin/
cp /share/gopls /usr/local/bin
cp /share/rust-analyzer /usr/local/bin
